package com.gk.bean.GuoYaoBackDto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class GHttpResult<T> implements Serializable {
    private int code;
    private String message;
    private T data;

    public GHttpResult(int code, String message) {
        this(code, message, null);
    }
}
